<?php

namespace App\Console\Commands\Erm;

use App\Repositories\ErmWhiteRepository;
use Illuminate\Console\Command;

class AutoRemoveWhite extends Command
{
    //命令名
    protected $signature = 'task:auto_remove_white';

    //命令描述
    protected $description = '自动去除过期白名单用户';

    public function __construct()
    {
        parent::__construct();
    }

    //业务处理
    public function handle()
    {
        $task = new ErmWhiteRepository();
        //过期去白
        $task->autoRemoveExpireWhite();
        //超次数去白
        $task->autoRemoveOverLimitWhite();
    }
}
